function isValid(frm1)
{
	var id = frm1.User_Id;
        var pass = frm1.Pass_word;
        var pass2 = frm1.Pass_word2;
        var fn = frm1.FirstName;
        var ln = frm1.LastName
        var city = frm1.City;
        var country = frm1.Country;
        var pin = frm1.ZIP;
        var phn = frm1.PhoneNo;
        
	if(check(id) && check(pass) && check(fn)  && check(ln) && check(city)
             && check(country) && check(pin) && isNumber(pin) && isNumber(phn) 
             && check(phn)&& check(pass2))
	{
		return true;
	}
	else
	{
		return false;
	}
}

function check(cmd)
{
	if(cmd.value == "")
	{
		alert(cmd.name + "  " + "Field Missed");
		cmd.focus();
		return false;
	}
	return true;
}
function isNumber(cmd)
{	
	if(isNaN(cmd.value))
	{
		alert(cmd.name+" "+ "should be numeric value");
		cmd.focus();
		return false;
	}
	return true;
}